{% extends "bugs/base.html" %}
{% block content_title %}{% endblock %}
{% block stylesheet %}{% load media %}{% media_prefix %}css/bugs-table.css{% endblock %}
{% block main %}
<script type="text/javascript">
function OpenTagForm(value)
  {
  window.location.assign(value)
  }
</script>

  <h2>{% block listtitle %}Milestones{% endblock %}</h2>
  <div id="tablecontent">
  {% if milestones %}
  <table width="50%" cellpadding="2" cellspacing="1">
  <tr bgcolor="#B7B7DD">
  <th width="80%" align="center">Value</th>
  <th width="10%">MileStone</th>
  <th width="10%">Sort</th>
  </tr>
  {% for milestone in milestones %}
  <tr bgcolor="{% cycle 'white' '#efefef' %}" class="table_row" onclick="OpenTagForm('{% url homesite.bugs.views.milestoneedit project.norm_name,milestone.value %}')">
  <td><a href="{% url homesite.bugs.views.milestoneedit project.norm_name,milestone.value %}">{{ milestone.value }}</a></td>
  <td>{% ifequal milestone.milestone 1 %}yes{% else %}-{% endifequal %}</td>  
  <td>{{ milestone.sort }}</td></tr>
  {% endfor %}
  </table>
  {% else %}
  <p>No tags avalible</p>
  {% endif %}
  </div>
{% endblock %}

